import request from '@/utils/request'

export function getBannerList(data) {
  return request({
    url:'Banner/getBannerList',
    method:'post',
    data
  })
}
//Orders/staticList
export function staticList(data) {
  return request({
    url:'Orders/staticList',
    method:'post',
    data
  })
}
//Orders/ordersBuy coin
export function ordersBuy(data) {
  return request({
    url:'Orders/ordersBuy',
    method:'post',
    data
  })
}

//Zhuan/paidanZhuan
export function paidanZhuan(data) {
  return request({
    url:'Zhuan/paidanZhuan',
    method:'post',
    data
  })
}

export function interturn(data) {
  return request({
    url:'Zhuan/interturn',
    method:'post',
    data
  })
}

export function transRecord(data) {
  return request({
    url:'Zhuan/transList',
    method:'post',
    data
  })
}

export function exchangeRecord(data) {
  return request({
    url:'Zhuan/transListHuan',
    method:'post',
    data
  })
}
export function getMyTeam(data) {
  return request({
    url:'User/getMyTeam',
    method:'post',
    data
  })
}
//User/getMyTeam

//Message/getBnnerList
export function getArtBnnerList(data) {
  return request({
    url:'Message/getBnnerList',
    method:'post',
    data
  })
}

export function getArticleList(data, type) {
  return request({
    url: type === 0 ? 'Message/getArtList' : 'Message/getNewList',
    method:'post',
    data
  })
}
//Message/getNewList

export function getOrderList(data) {
  return request({
    url:'Orders/orderList',
    method:'post',
    data
  })
}

export function payInfo(data) {
  return request({
    url:'Orders/payInfo',
    method:'post',
    data
  })
}

export function getOrdersList(data, type) {
  let url = '';
  switch (type) {
    case 1: url = 'Orders/buylist';
    break;
    case 2: url = 'Orders/orderBuyList';
    break;
    case 3: url = 'Orders/buyComplaint1';
    break;
    case 4: url = 'Orders/buyComplaint';
    break;
    case 5: url = 'Orders/orderSellList';
      break;
    case 6: url = 'Orders/sellList';
      break;
    case 7: url = 'Orders/sellComplaint1';
      break;
    case 8: url = 'Orders/sellComplaint';
      break;
  }
  return request({
    url,
    method:'post',
    data
  })
}

export function pipeiPayInfo(data) {
  return request({
    url:'Orders/payMentList',
    method:'post',
    data
  })
}
//Orders/checkDa
export function checkDa(data) {
  return request({
    url:'Orders/checkDa',
    method:'post',
    data
  })
}

export function confirmShouKuan(data) {
  return request({
    url:'Orders/checkShou',
    method:'post',
    data
  })
}

export function buyInfo(data) {
  return request({
    url:'Orders/buyInfo',
    method:'post',
    data
  })
}
export function plaintOrder(data) {
  return request({
    url:'Orders/plaintOrder',
    method:'post',
    data
  })
}

export function articleDetails(data, type) {
  return request({
    url: type === '0'?'Message/getArt': 'Message/getNew',
    method:'post',
    data
  })
}

export function getGongGao(data) {
  return request({
    url:'Message/getGonggao',
    method:'post',
    data
  })
}
//Message/getGonggao